Prepare Text Data: Prepare Text Data
Description
This function loads/prepares data for text classification
Usage
prepareTextData(fileName, dataType = "train", targetColInd = 0, predictorColInd = 2, delimiter = ",")
Arguments
dataType
Whether this is 'train' or 'test' data
targetColInd
The column index of the target variable (labels)
predictorColInd
The column index of the predictor (text)
delimiter
The delimiter used to parse the data